package com.jd.jr.insights.dm.dim.domain;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * Created by Administrator on 2017/9/3.
 */
public class OperationLog {

    public static  final String operateType_UPDATE="UPDATE";
    public static  final String operateType_DELETE="DELETE";
    public static  final String operateType_NEW="NEW";

    private Long logId;
    private String erp;
    private String operateType;
    private String beforeDetail;
    private String afterDetail;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;

    public OperationLog(Long logId, String erp, String operateType, String beforeDetail, String afterDetail, Date createdTime, Date updatedTime) {
        this.logId = logId;
        this.erp = erp;
        this.operateType = operateType;
        this.beforeDetail = beforeDetail;
        this.afterDetail = afterDetail;
        this.createdTime = createdTime;
        this.updatedTime = updatedTime;
    }

    public Long getLogId() {
        return logId;
    }

    public void setLogId(Long logId) {
        this.logId = logId;
    }

    public String getErp() {
        return erp;
    }

    public void setErp(String erp) {
        this.erp = erp;
    }

    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    public String getBeforeDetail() {
        return beforeDetail;
    }

    public void setBeforeDetail(String beforeDetail) {
        this.beforeDetail = beforeDetail;
    }

    public String getAfterDetail() {
        return afterDetail;
    }

    public void setAfterDetail(String afterDetail) {
        this.afterDetail = afterDetail;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
}
